<?
require_once("models/ipModel.php");
class iMVC_IP_Check{

    public $ipSource=array();


    public function ipCheck(){
         
        $ip=$_SERVER["REMOTE_ADDR"];
        $ipm=new ipModel();
        $this->ipSource=$ipm->fetchAll();
        if(!empty($this->ipSource)){
            foreach($this->ipSource as $value){
                if($ip==$value['ip_address']){

                    die("你的ip被封停"); 
                }

            } 
        }
    
    
    }





}
// vim600:ts=4 st=4 foldmethod=marker foldmarker=<<<,>>>
// vim600:syn=php commentstring=//%s
